﻿package fpc.utils;

class ClassFactory< T > implements IFactory< T >
{
	var _clazz:Class<T>;
	
	public function new(clazz:Class<T>) 
	{
		_clazz = clazz;
	}
	
	public function create():T
	{
		return Type.createInstance(_clazz, []);
	}
}